package com.zpark.redisspringbootautoconfigure;

import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import redis.clients.jedis.Jedis;


@Configuration
@EnableConfigurationProperties(RedisProperties.class)
public class RedisAutoConfiguration {
    /*
    提供jedis的bean
     */

    public Jedis jedis(){
        return new Jedis("localhost",6379);
    }
}
